package com.beesphere.excel.reader.tests;

import java.io.FileInputStream;
import java.nio.charset.Charset;

import com.beesphere.excel.reader.impls.xml.ExcelToXmlConverter;

public class SingleSheetXmlnsTest {
	public static void main (String [] args) throws Exception {
		ExcelToXmlConverter reader = new ExcelToXmlConverter ();
		String[] xmlns = new String[] {
				"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
				"xmlns:xls=\"http://www.beesphere.net/xsds/2008/xls\""
		};
		String nameSpace = "xls";
		reader.setXmlns(xmlns);
		reader.setSheetIndex(1);
		reader.setNamespace(nameSpace);
		reader.setCharset (Charset.defaultCharset());
		reader.read (new FileInputStream ("files/in.xls"));
	}
}
